Skip to main content
Glama

Convex MCP server

Official
by get-convex
page.tsx1.2 kB
import { FrameworkList, getOptionName } from "@/app/vote/FrameworkList"; import { Counter } from "@/app/vote/[option]/Counter"; import { api } from "@/convex/_generated/api"; import { preloadQuery, preloadedQueryResult } from "convex/nextjs"; export default async function VoteOptionPage({ params, }: { params: Promise<{ option: string }>; }) { const { option } = await params; const counterName = option; const preloadedCounter = await preloadQuery(api.counter.get, { counterName, }); const value = preloadedQueryResult(preloadedCounter); return ( <> <h1 className="text-4xl font-extrabold my-8 text-center"> Vote for {getOptionName(option)} </h1> <p>This is a Server Component content.</p> <p> The value of the counter when the page was loaded was:{" "} <span className="font-bold">{value}</span> </p> <Counter counterName={counterName} preloadedCounter={preloadedCounter} /> <p> Open this page in another tab to see the Client Component update in real time. </p> <div> <p>Go to another page:</p> <FrameworkList current={option} /> </div> </> ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server